package com.byxy.service;

import com.byxy.dao.BaseDao;
import com.byxy.dao.PayInfoDaoImpl;
import com.byxy.model.PayInfo;

import java.util.List;

public class PayInfoServiceImpl implements BaseService<PayInfo> {
	BaseDao<PayInfo> payDao = new PayInfoDaoImpl();

	@Override
	public int add(PayInfo pay) {
		return payDao.add(pay);
	}

	@Override
	public int deleteById(int id) {
		return payDao.deleteById(id);
	}

	@Override
	public int update(PayInfo pay) {
		return payDao.update(pay);
	}

	@Override
	public List<PayInfo> findAll() {
		return payDao.findAll();
	}

	@Override
	public PayInfo findById(int id) {
		return payDao.findById(id);
	}

}
